Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modularizing encoder/decoder in Autoencoder class #10

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

dreamer2368
Copy link
Collaborator

@dreamer2368 dreamer2368 commented Oct 10, 2024

This PR must be rebased and merged after PR #9 .

Using DistributedDataParallel for data parallelism requires access to encoder and decoder as a torch.nn.Module. Current Autoencoder class provide encoder and decoder as member functions, though DistributedDataParallel cannot use custom member functions except forward.

  • lasdi.latent_space.MultiLayerPerceptron is now provided as a distinct module for a vanilla MLP.
  • lasdi.latent_space.Autoencoder simply contains two MultiLayerPerceptrons as encoder and decoder.

@dreamer2368 dreamer2368 added the RFR Ready for Review label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready for Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant